projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14bb7a4
)
ARM: uniphier: skip MEMCONF ch2 parsing if CH2_DISABLE bit is set
author
Masahiro Yamada
<
[email protected]
>
Mon, 20 Feb 2017 03:10:05 +0000
(12:10 +0900)
committer
Masahiro Yamada
<
[email protected]
>
Wed, 22 Feb 2017 23:37:56 +0000
(08:37 +0900)
If SG_MEMCONF_CH2_DISABLE bit is set, the DRAM channel 2 is unused.
The register settings for the ch2 should be ignored.
Signed-off-by: Masahiro Yamada <
[email protected]
>
arch/arm/mach-uniphier/dram_init.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/dram_init.c
b/arch/arm/mach-uniphier/dram_init.c
index 881062d9b697e6e371d537cfeeed189a9e736ff8..e7afa711f58bbb4c7619939fe4dc5436e5f919fb 100644
(file)
--- a/
arch/arm/mach-uniphier/dram_init.c
+++ b/
arch/arm/mach-uniphier/dram_init.c
@@
-159,7
+159,7
@@
static int uniphier_memconf_decode(struct uniphier_dram_ch *dram_ch)
dram_ch[1].size = size;
- if (!data->have_ch2)
+ if (!data->have_ch2
|| val & SG_MEMCONF_CH2_DISABLE
)
return 0;
/* set up ch2 */